package com.ymatou.iapi.productmanager.service;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;

public class QueryProductTemplateCall extends YmatouAutoTestCall{

	private static String opurl ="api/SellerProduct/QueryProductTemplate";
	
	public QueryProductTemplateCall() {
		super(EnvSetup.getSystemUrl("productmanager"),opurl,"GET","JSON");
	}
	@Override
	public void addDefHeader() {
	}
	
	public JSONObject callAndGetReturnData(String sellerId,String typeId){
		return callAndGetReturnData(MapUtil.hashMap("SellerId", sellerId, "TemplateType", typeId));
		
	}
	
	public JSONObject callAndGetReturnData(String sellerId,String typeId,int thirdCategoryId){
		return callAndGetReturnData(MapUtil.hashMap("SellerId", sellerId, "TemplateType", typeId,"ThirdCategoryId",thirdCategoryId));
		
	}
	
	
	public static void main(String[] args) {
		System.out.println(new QueryProductTemplateCall().callAndGetReturnData("3383","1").toString());
	}

}
